package cn.sptpc.Controller;

import cn.sptpc.service.ActivityService;
import cn.sptpc.service.UserService;
import cn.sptpc.service.impl.ActivityServiceI;
import cn.sptpc.service.impl.UserServiceI;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;

@WebServlet("/upword.do")
public class UpWordServlet extends HttpServlet {
    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        ActivityService activityService = new ActivityServiceI();
        PrintWriter out = response.getWriter();
        String s = activityService.fileUpload(request);
        out.print(s);
    }

    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

    }
}
